#!/bin/bash
echo "Please enter the www password to get administrator privileges:"
for i in {two,one}
  do
	su - www 
	if [ $? -eq 0 ];then
	  echo "User login successful"
	  exit
        fi
        if [ $? -ne 0 ];then
	  echo "please input www passwd,now you have $i chance:"
        fi
done
exit


